package com.example.blog.controller;

import com.example.blog.service.BlogService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * name: 东北宋小宝
 * date: 2020/9/4
 */
@Controller
@RequestMapping("/public")
public class PublicShowController {
    @Resource
    private BlogService blogService;
    @GetMapping("/footer")
    public String footer(Model model){
        model.addAllAttributes(blogService.getInformation());
        return "public::footer";
    }
}
